<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
    <%!
    /**
    	get the error massage from the value stack
    **/
    String parseError(HttpServletRequest request, String name){
		Map map = (Map)request.getAttribute("fieldErrors");
		if(map == null)
			return "";
		if(map.isEmpty())
			return "";
	  	ArrayList<String> list= new ArrayList<String>();
	  	String s = new String("");
  		list =(ArrayList<String>) map.get(name);
  		if(list!=null && !list.isEmpty())
  			s = list.get(0);
	  	return s;
	}
    %>
